package com.coolgor.coldot.dto.wechat.gzh;

import com.coolgor.coldot.entity.wechat.gzh.GZHUser;
import com.coolgor.coldot.enums.wechat.gzh.GZHUserOperationStateEnum;

import java.util.List;


public class GZHUserExecution {

	// 结果状态 
	private int state;
	// 结果状态标识 
	private String stateInfo;
	// 执行结果的数量 
	private int count;
	// 操作的对象(增删改的时候用到)
	private GZHUser gZHUser;
	// 获取的结果列表(查询列表的时候使用)
	private List<GZHUser> gZHUserList;

	// 构造器
	public GZHUserExecution() {}

	// 操作失败的时候使用的构造器
	public GZHUserExecution(GZHUserOperationStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public GZHUserExecution(GZHUserOperationStateEnum stateEnum, GZHUser gZHUser) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.gZHUser = gZHUser;
	}

	// 查询 操作成功的时候使用的构造器
	public GZHUserExecution(GZHUserOperationStateEnum stateEnum, List<GZHUser> gZHUserList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.gZHUserList = gZHUserList;
	}


	// 下面都是getter 和setter

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public GZHUser getGZHUser() {
		return gZHUser;
	}

	public void setGZHUser(GZHUser gZHUser) {
		this.gZHUser = gZHUser;
	}

	public List<GZHUser> getGZHUserList() {
		return gZHUserList;
	}

	public void setGZHUserList(List<GZHUser> gZHUserList) {
		this.gZHUserList = gZHUserList;
	}

}